import {createRouter, createWebHashHistory} from 'vue-router'

const routes=[
    {
        path:"/index",
        name:"index",
        component:()=>import('../views/index/indexView.vue')
    },
    {
        path:"/dashboard",
        name:"dashboard",
        component:()=>import('../views/center/dashboardView.vue')
    },
    {
        path:"/login",
        name:"login",
        component:()=>import('../views/login/loginView.vue')
    },
    {
        path: "/begin",
        name: "begin",
        component:()=>import('../views/begin/beginView.vue')
    },
    {
        path:"/",
        redirect:"/begin"
    },
    {
        path:"/:catchAll(.*)",
        name:"notFound",
        component:()=>import('../views/error/404View.vue')
    }
]

const router=createRouter({
    routes,
    history:createWebHashHistory()
})

export default router
